package com.mgg.common.enums;

/**
 * @Author: lijun
 * @Date: 2018-09-01 10:22:00
 */
public enum ResultEnum implements BaseResult{

    SUCCESS("100", "成功!"),
    PARAM_ERROR("001","参数验证失败!"),
    KEY_ERROR("002","密钥验证失败!"),
    SYSTEM_ERROR("005","系統错误"),
    UNAUTHORIZED("006","未登录授权"),
    DAO_ERROR("007","数据查询失败"),

    //登录模块
    SMSCODE_NONE_ERROR("105","手机验证码不能为空"),
    SMSCODE_NOT_EXIST_ERROR("106","手机验证码不存在"),
    SMSCODE_EXPIRE_ERROR("107","手机验证码已过期"),
    SMSCODE_MATCH_ERROR("108","手机验证码不匹配"),
    ;

    private String code;

    private String message;

    public String getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

    ResultEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }
}
